#!/bin/bash

if [ "$ROOT462" = "" ]; then
    echo ERROR ROOT462 environment variable not defined.
    exit 1
fi

. $ROOT462/remote/remote_setup.sh

export PROPERTIES="\
    -Dgroup2.AuditLogFolder=/tmp/$USER/audit \
    -Dgroup2.db.poolSize=20 \
    -Dgroup2.downloadDir=/tmp/$USER/downloads \
    -Dgroup2.factory.DBStub=false \
    -Dgroup2.factory.QuoteStub=false \
    -Dgroup2.factory.RegistryHost=$SRV_REG \
    -Dgroup2.tomcatHost=$SRV_TOMCAT1,$SRV_TOMCAT2,$SRV_TOMCAT3,$SRV_TOMCAT4,$SRV_TOMCAT5 \
    -Dgroup2.tomcatHost2=$SRV_TOMCAT1 \
    -Djava.rmi.server.hostname=$HOSTNAME \
    -Djava.rmi.server.useLocalHostnameIGNORE=1 \
    -Dlog4f.configuration=log4j.xml \
    "

export CLASSPATH462=build/WEB-INF/classes:jars/pg74.216.jdbc3.jar:jars/log4j-1.2.14.jar:jars 

export JAVA_CMD="java -Xms100M -Xmx200M $PROPERTIES -cp $CLASSPATH462"

export LOGROOT=/tmp/darren5
